<?php
require './application/third_party/qiniu/autoload.php';
use Qiniu\Auth;
class Qiniu{
	// 用于签名的公钥和私钥
	public $accessKey = 'AAFRyDfG5FP_j53RDwGap4Aoj9J48ZIyL2r8h5yH';
	public $secretKey = 'K9xa1NRCu3Vhp9eSSN48V3M_02gB58sam-PpD-g1';
	public $bucket = 'faxian001';
	public function __construct($param = array())
	{
		// 初始化签权对象
		
	}
	
	public function token()
	{
		// 生成上传Token
		$auth = new Auth($this->accessKey, $this->secretKey);
		$token = $auth->uploadToken($this->bucket,null,7200);
		return $token;
	}
}